<template>
  <section class="shop-base-info">
    <div class="title">
      <span> 工商登记信息 </span>
    </div>
    <ul class="text">
      <li>
        <span>企业名称</span>
        <span> {{ shopInfo.identification.company_name }}</span>
      </li>
      <li>
        <span>工商执照注册号</span>
        <span> {{ shopInfo.identification.identificate_agency }}</span>
      </li>
      <li>
        <span>注册资本</span>
        <span> {{ shopInfo.identification.registered_number }}</span>
      </li>
      <li>
        <span>注册地址</span>
        <span> {{ shopInfo.identification.registered_address }}</span>
      </li>
      <li>
        <span>属地监管所</span>
        <span> {{ shopInfo.identification.registered_principal }}</span>
      </li>
      <li>
        <span>法定代表人</span>
        <span> {{ shopInfo.identification.legal_person }}</span>
      </li>
      <li>
        <span>经营范围</span>
        <span> {{ shopInfo.identification.operation_period }}</span>
      </li>
    </ul>
    <div class="title restaurant">
      <span> 餐饮许可证 </span>
    </div>
    <ul class="text restaurant-text">
      <li>
        <span>营业范围</span>
        <span>{{ shopInfo.identification.operation_period }}</span>
      </li>
      <li>
        <span>许可证有效期</span>
        <span>{{ shopInfo.identification.licenses_date }}</span>
      </li>
      <li>
        <span>许可证号</span>
        <span>{{ shopInfo.identification.licenses_number }}</span>
      </li>
      <li>
        <span>发证时间</span>
        <span>{{ shopInfo.identification.licenses_scope }}</span>
      </li>
      <li>
        <span>发证机关</span>
        <span>{{ shopInfo.identification.registered_principal }}</span>
      </li>
    </ul>
  </section>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  computed: {
    ...mapGetters(["shopInfo"]),
  },
};
</script>
<style lang="less" scoped>
.shop-base-info {
  margin-top: 10px;
  background-color: #ebebeb;
  color: #4c4c4c;
  .title {
    padding: 10px;
    border-bottom: 1px solid #eaeaea;
    background-color: #fff;
    font-size: 18px;
    color: #333333;
  }
  .text {
    padding: 10px;
    background-color: #fff;
    font-size: 12px;
    li {
      padding: 10px;
      & span:nth-child(2) {
        margin-left: 10px;
      }
    }
  }
  .restaurant {
    margin-top: 10px;
  }
  .restaurant-text {
    margin-bottom: 10px;
  }
}
</style>